package main

import (
	"os"
	"os/signal"
	many_one "producer_consumer/many-one"
	"producer_consumer/out"
	"syscall"
)

func main() {
	o := out.NewOut()
	go o.Output()

	//one_one.Exec()
	//one_many.Exec()
	many_one.Exec()
	//many_many.Exec()

	sig := make(chan os.Signal)
	signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
	<-sig
}
